package com.uchiha.nova.mainService.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.uchiha.nova.core.model.entity.RoleEntity;
import com.uchiha.nova.core.model.entity.UserRoleEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户角色关联表  Mapper 接口
 * </p>
 *
 * @author 周林静
 * @since 2021-04-30
 */
public interface UserRoleMapper extends BaseMapper<UserRoleEntity> {

    List<RoleEntity> selectRole(@Param("userId") Long id);

    int deletePhysic(@Param("userId") Long userId);

    int deletePhysicByRoleId(@Param("roleId") Long roleId);

}
